package loveqq.niceexcel.read.handler;

import loveqq.niceexcel.read.ReadContext;
import org.apache.poi.ss.usermodel.Cell;

/**
 * 读取监听器
 * <pre>{@code
 *
 *  CellReadHandler handler;
 *  for (Cell cell : row) {
 *      // 读取cell
 *      handler.onCellRead();
 *      ......  // 定位处理数据
 *  }
 *
 * }</pre>
 *
 * @author zhongjh@tsintergy.com
 * @date 2022-08-18
 */
public interface CellReadHandler extends ReadHandler {
    /**
     * 单个cell获取后读取
     */
    default void onCellRead(ReadContext context, Cell cell) {
    }
}
